package com.example.fw;

import org.openqa.selenium.By;

public class NavigationHelper extends HelperWithWebDriverBase {

	public NavigationHelper(ApplicationManager manager) {
		super(manager);
	}

	public void openGroupListPage() {
//		if (findElement(By.xpath(".//*[@id='content']/h1")).getText().contains(
//				"Groups")) {
//			click(By.linkText("groups"));
//		} else
//			return;
		click(By.linkText("groups"));
	}

	public void openMainPage() {
		// kakya to proverka 4to my yje naxohdimsya na nyjnoi stranice
		openUrl(WebDriverHelper.baseUrl + "addressbookv4.1.4/");
	}

}
